package com.iotechn.unimall.data.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.dobbinsoft.fw.core.annotation.doc.ApiEntity;
import com.dobbinsoft.fw.core.annotation.doc.ApiField;
import com.dobbinsoft.fw.support.domain.SuperDO;
import lombok.Data;

@TableName("bk_article")
@Data
@ApiEntity(description = "文章表")
public class ArticleDO extends SuperDO {

    @ApiField(description = "标题")
    private String title;

    @ApiField(description = "内容")
    private String content;

    @ApiField(description = "分类id")
    private Long articleClassId;

    @ApiField(description = "图片封面")
    private String imgUrl;

    @ApiField(description = "状态")
    private Integer status;

    @ApiField(description = "热度")
    private Long heat;

    @ApiField(description = "分类名称")
    @TableField(exist = false)
    private String name;

    @ApiField(description = "发布人")
    private String gmtCreateUser;

    @ApiField(description = "逻辑删除")
    private Integer isDelete;
}
